#include "stdafx.h"
#include "Handler_CP.h"
#include "User.h"
#include "PatchServer.h"
#include "UserManager.h"
#include "PacketStruct_CP.h"
#include "Protocol_CP.h"
#include "ChannelManager.h"
#include "Channel.h"
#include "ServerSession.h"
#include "ServerSessionManager.h"
#include "Log.h"
#include "Packet.h"
#include "PacketFactory.h"
#include "PacketCreator.h"

#define  PACKET_SEND \
pUser->Send(pSendMsg->getBuff(),pSendMsg->getSize());\
PacketFactory::Instance()->Free(pSendMsg)\

VOID Handler_CP::OnCG_HEARTBEAT( User *pUser, MSG_BASE *pMsg, WORD wSize )
{

}

VOID Handler_CP::OnCS_UPDATE_INIT_FILE_DETAIL_LIST(User *pUser, MSG_BASE *pMsg, WORD wSize)
{
    // Start of file info reply
}

VOID Handler_CP::OnCS_UPDATE_SEND_FILE_DETAIL(User *pUser, MSG_BASE *pMsg, WORD wSize)
{
    //File info
}

VOID Handler_CP::OnCS_UPDATE_REQUEST(User *pUser, MSG_BASE *pMsg, WORD wSize)
{
    //
	Packet* pSendMsg = PacketCreator::SendAFileFragmentCommand();
	PACKET_SEND;

}

VOID Handler_CP::OnCS_UPDATE_END_OF_FILE_INFO_REPLY(User *pUser, MSG_BASE *pMsg, WORD wSize)
{
	//
	Packet* pSendMsg = PacketCreator::UpdateCompleteCommand();
	PACKET_SEND;
}